package cn.tqfeiyang.smartadmin.system.constant;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 登录结果
 *
 * @author tqfeiyang
 * @since 2024/8/26 14:12
 */
public enum LoginResultEnum {
    LOGIN_SUCCESS(0, "登录成功"),
    LOGIN_FAIL(1, "登录失败"),
    LOGIN_OUT(2, "退出登录");

    @EnumValue
    private final int value;

    @JsonValue
    private final String message;

    LoginResultEnum(int value, String message) {
        this.value = value;
        this.message = message;
    }

    public Integer getValue() {
        return value;
    }

    public String getMessage() {
        return message;
    }

}
